package cn.edu.swpu.cins.u_chain.utils;


public class RedisKey {

    //要存入redis的东西 最好键都是有格式的自定义
    private static  String U_CHAIN_REGISTER = "U_CHAIN_REGISTER";

    private static  String SPILIT = ":";
    //用户使用手机验证码登录
    private static  String U_CHAIN_LOGIN = "U_CHAIN_LOGIN";
    private static String U_CHAIN_FIND_PWD = "U_CHAIN_FIND_PWD";
    //登录验证码
    private static String U_CHAIN_LOGIN_TOKEN = "U_LOGIN_TOKEN";
    //人关注的项目
    private static String U_CHAIN_FOCUS = "UCHAIN_FOCUS";

    //项目被那些人关注
    private static String U_CHAIN_FOLLOWER = "U_CHAIN_FOLLOWER";

    //项目点击数
    private static String U_CHAIN_CLICK_NUM = "U_CHAIN_CLICK_NUM";

    //消息队列
    private static String U_CHIAN_EVENTQUEUE = "UCHAIN_EVENT_QUEUE";

    //项目点赞
    private static String U_CHAIN_LIKE = "U_CHAIN_LIKE";


    private static String U_CHAIN_DISLIKE = "U_CHAIN_DISLIKE";

    //绑定邮箱
    private static String U_CHAIN_MAIL_CONFIRM = "U_CHAIN_MAIL_CONFIRM";

    //更换邮箱
    private static String U_CHAIN_CHANGE_MAIL = "U_CHAIN_CHANGE_MAIL";

    private static String LOCATION_ALL = "PROVINCE_CITY_COUNTY";

    //作品点击量
    private static String WORKS_CLINE_NUM = "WORKS_CLICK_NUM";

    //作者点赞的人
    private static String WORKS_LIKE = "WORKS_LIKE";

    //我点赞的作品
    private static String LIKE_WORKS = "LIKE_WORKS";


    public static String getuChainRegister(String phoneNum) {
        return U_CHAIN_REGISTER + SPILIT + phoneNum;
    }

    public static String getuChainLogin(String phoneNum) {
        return U_CHAIN_LOGIN + SPILIT + phoneNum;
    }

    public static String getuChainFindPwd(String phoneNum) {
        return U_CHAIN_FIND_PWD + SPILIT + phoneNum;
    }

    public static String getuChainLoginToken(String phoneNum) {
        return U_CHAIN_LOGIN_TOKEN + SPILIT + phoneNum;
    }

    //人关注的项目
    public static String getUchainFocus(int userId) {
        return U_CHAIN_FOCUS + SPILIT + userId;
    }

    //项目的关注者
    public static String getUchainFollower(int proId) {
        return U_CHAIN_FOLLOWER + SPILIT + proId;
    }

    //点击数
    public static String getUchianClickNum(int proId,int userId) {
        return U_CHAIN_CLICK_NUM + SPILIT + proId + SPILIT + userId;
    }
    //消息队列
    public static String getuChianEventqueue() {
        return U_CHIAN_EVENTQUEUE;
    }

    //这个看业务需求
    public static String getUchainLike(int proId, int userId) {
        return U_CHAIN_LIKE + SPILIT + proId + SPILIT + userId;
    }

    public static String getuChainDislike(int proId) {
        return U_CHAIN_DISLIKE + SPILIT + proId;
    }

    public static String getuChainMailConfirm(int userId, String mail) {
        return U_CHAIN_MAIL_CONFIRM + SPILIT + userId + SPILIT + mail;
    }

    public static String getuChainChangeMail(int userId, String mail) {
        return U_CHAIN_CHANGE_MAIL + SPILIT + userId + SPILIT + mail;
    }

    public static String getLocationAll() {
        return LOCATION_ALL + SPILIT;
    }

    public static String getWorksClineNum(int worksId) {
        return WORKS_CLINE_NUM + SPILIT + worksId;
    }

    public static String getWorksLike(int worksId) {
        return WORKS_LIKE + SPILIT + worksId;
    }

    public static String getLikeWorks(int userId) {
        return LIKE_WORKS + SPILIT + userId;
    }
}
